import ReactDom from "react-dom";
import React from "react";
import {hashHistory, Router, Route, IndexRedirect} from "react-router";
import App from "./pages/app";
import Activity from "./pages/activity";
import Win from "./pages/win";
import ShakeSplash from "./pages/shake-splash";
import Shake from "./pages/shake";
import Award from "./pages/award";
import Safe from "./pages/safe";
import ExchangeRule from './pages/exchange-rule';
//文章页
const route = (
    <Router history={hashHistory}>
        <Route path="/" component={App}>
            <IndexRedirect to="/shake-splash"/>
            <Route path="shake-splash" component={ShakeSplash}/>
            <Route path="shake" component={Shake}/>
            <Route path="win" component={Win}/>
            <Route path="activity" component={Activity}/>
            <Route path="award" component={Award}/>
            <Route path="safe" component={Safe}/>
            <Route path="exchange-rule" component={ExchangeRule}/>
        </Route>
    </Router>
);
ReactDom.render(route, document.querySelector('#content'));